#include "nb_request.h"

int NB_Request::getPort()
{
	return ntohs(m_lpMsg->addr.sin_port);
}

char * NB_Request::getIp()
{
	return inet_ntoa(m_lpMsg->addr.sin_addr);
}

char * NB_Request::getMessage()
{
	return m_lpMsg->buffer;
}

int NB_Request::getMsgLen()
{
	return (int)strlen(m_lpMsg->buffer);
}